package com.jiangore.dao;

import com.jiangore.entity.Member;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface MemberDao {

    @Delete("delete from t_member where id = #{id}")
    int deleteById(@Param("id")int id);

    @Select("select * from t_member where id = #{id}")
    Member selectById(@Param("id")int id);

}